package ro.imc.rest.client.display.menu;


public enum MenuItemType {
	MY_COURSES,
	CATALOGS,
	SEARCH,
	OPTIONS,
	LOG_OUT;
	
	public static final String MY_COURSES_STR = "My Courses";
	public static final String CATALOGS_STR = "Catalogs";
	public static final String SEARCH_STR = "Search...";
	public static final String OPTIONS_STR = "Options";
	public static final String LOG_OUT_STR = "Log out!";
	
	public static final String MY_COURSES_ICO = "img/add-document-32.png";
	public static final String CATALOGS_ICO = "img/folder.png";
	public static final String SEARCH_ICO = "img/search.png";
	public static final String OPTIONS_ICO = "img/settings.png";
	public static final String LOG_OUT_ICO = "img/shutdown.png";
	
	public String getIcon () {
		switch (this) {
		case CATALOGS: {
			return CATALOGS_ICO;
		}
		case MY_COURSES: {
			return MY_COURSES_ICO;
		}
		case SEARCH: {
			return SEARCH_ICO;
		}
		case OPTIONS: {
			return OPTIONS_ICO;
		}
		case LOG_OUT: {
			return LOG_OUT_ICO;
		}
		default: {
			return "No Title Selected";
		}
		}
	}
	
	public String getTitle () {
		switch (this) {
		case CATALOGS: {
			return CATALOGS_STR;
		}
		case MY_COURSES: {
			return MY_COURSES_STR;
		}
		case SEARCH: {
			return SEARCH_STR;
		}
		case OPTIONS: {
			return OPTIONS_STR;
		}
		case LOG_OUT: {
			return LOG_OUT_STR;
		}
		default: {
			return "No Title Selected";
		}
		}
	}
}
